const app = getApp();

Page({
  data: {},
  onLoad: function () {
    console.log("Welcome to Mini Code");
  },
  pay() {
    tt.pay({
      orderInfo: {
        order_id: "7355023711415601471",
        order_token:
          "CgwIARDPKBjKMCABKAESTgpMMZPL8ZTNOLnCJUHBrcYCJ2IRqEuwijvSLf9Plzu41SfkZeHbZDNgp18uQZ7VI8jMsvDKhrNNh4xPU44mvAWRl9E6634ctWocq28/MRoA.W",
      },
      service: 5,
      success: (e) => {
        console.log(e);
        tt.showToast({
          title: "支付成功！",
        });
      },
      fail: (e) => {
        console.log(e);
      },
    });
  },
});
